package com.taxi.remote;

import com.taxi.dto.OrderInfo;
import com.taxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-order")
public interface ServiceOrderClient {
    @GetMapping("/order/get-order-list")
    public Result getOrderList(@RequestParam int page, @RequestParam int limit, @RequestParam(required = false) String address, @RequestParam(required = false) String phone);

    @PostMapping("/order/update")
    public Result updateOrder(@RequestBody OrderInfo orderInfo);
}
